package com.aiyige.page.my.wallet;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.aiyige.R;
import com.aiyige.arouter.config.ARouterConfig;
import com.aiyige.base.BaseActivity;
import com.aiyige.page.my.wallet.utils.WalletServiceModel;
import com.aiyige.utils.DialUtil;
import com.alibaba.android.arouter.facade.annotation.Route;

import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 提现结果页面
 */
@Route(path = ARouterConfig.WalletWithdrawalResultPage, extras = ARouterConfig.EXTRA_NEED_LOGIN)
public class WalletWithdrawalResultPage extends BaseActivity {

    WalletServiceModel walletServiceModel = new WalletServiceModel();
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.page_wallet_withdrawal_result);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.iv_close, R.id.ll_call_wallet_service})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.iv_close:
                finish();
                break;
            case R.id.ll_call_wallet_service:
                DialUtil.dial(walletServiceModel.getServicePhone());
                break;
        }
    }
}
